Page({
  data: {
    imgUrls: [
      '../../assect/1.jpg',
      '../../assect/2.jpg',
      '../../assect/3.jpg'
    ],
    text:[
      "1","2","3"
    ],
    indicatorDots: true,
    indicatorColor:"rgba(0, 0, 0, .3)",
    autoplay: true,
    interval: 2000,
    duration: 1000,
    circular: true
  },
  changeIndicatorDots: function (e) {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },
  onSwiperTap:function(event){
    console.log(event)

  },
  getUrl(e){
    var url = e.currentTarget.dataset.url;
    console.log(url)

  },
  getindex(e){
    var index = e.currentTarget.dataset.bean;
    var item = e.currentTarget.dataset.item;
    console.log(index)
    console.log(item)
  },
 
  changeAutoplay: function (e) {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },
  intervalChange: function (e) {
    this.setData({
      interval: e.detail.value
    })
  },
  durationChange: function (e) {
    this.setData({
      duration: e.detail.value
    })
  }
})